@mixin text-line($value) {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: $value;
  /* autoprefixer: off */
  -webkit-box-orient: vertical;
  /* autoprefixer: on */
  word-break: break-all;
}

.legal-person-display-comp {
  .legal-person-display-title {
    font-weight: 500;
    font-size: 16px;
    color: #1E2126;
    line-height: 24px;
  }
  .info-text {
    font-size: 16px;
    color: #34373B;
    margin-bottom: 12px;
  }
  .title-box {
    margin-top: 12px;
    .title-and-btn {
      display: flex;
      justify-content: space-between;
      margin-bottom: 12px;
      .ant-btn {
        flex-shrink: 0;
        padding: 0 10px;
      }
    }
  }
  .info-list-box {
    .show-hide-div {
      transition: height ease 0.3s;
      height: 0;
      overflow: hidden;
      &.show {
        height: 148px;
      }
    }
    .ant-row {
      margin-bottom: 16px;
    }
    .info-value {
      color: #34373B;
    }
  }
  .img-list-box {
    margin-bottom: 12px;
  }
  .show-switch {
    transition: all ease 0.2s;
    margin-bottom: 12px;
    cursor: pointer;
    color: #4B8DFF;
    .anticon {
      margin-left: 4px;
    }
    &:active {
      color: #2b78ff;
    }
    &:hover {
      color: #2b78ff;
    }
  }
  .entity-info-box {
    margin-top: 12px;
    .legal-person-display-title {
      margin-bottom: 12px;
    }
    .ant-btn {
      padding: 0 10px;
    }
  }
  .legal-entity-card-list {
    margin-top: 12px;
    padding-bottom: 40px;
    .single-type {
      .single-info-card {
        transition: all ease 0.2s;
        padding: 20px;
        border: 1px solid #CDD7EC;
        border-radius: 8px;
        margin-bottom: 12px;

        .name-and-edit {
          display: flex;
          justify-content: space-between;
          .name {
            font-weight: 500;
            font-size: 16px;
            color: #1E2126;
            line-height: 24px;
            word-break: break-all;
            @include text-line(1);
            margin-right: 20px;
          }
          .edit {
            flex-shrink: 0;
            .delete-button {
              color: #8E9092;
              &:hover {
                color: #FF6680;
              }
            }
            .edit-button {
              color: #8E9092;
              &:hover {
                color: #4B8DFF;
              }
            }
          }
          margin-bottom: 8px;
        }

        .ant-row {
          margin-bottom: 8px;
        }

        &:hover {
          border: 1px solid #4B8DFF;
          box-shadow: 0 4px 12px 0 rgba(75,141,255,0.50);
          border-radius: 8px;
        }
      }

      &.disabled {
        .single-info-card {
          border: 1px solid #EBF0F5;
          background-color: #ebf0f5;
          &:hover {
            border: 1px solid #ebf0f5;
            box-shadow: 0 4px 12px 0 rgba(0,0,0,0.15);
            border-radius: 8px;
          }
        }
      }
    }
  }
}
